package com.googlecode.continuity.core.client;

import java.io.Serializable;

/**
 * A Reply is an extended message with a parent message.
 *
 * @author Peter Schmitt <aragos@aragos.de>
 * @see Message
 */
public class Reply extends Message {
  private Message parentMessage;

  /**
   * Returns this reply's parent message.
   *
   * @return parent message
   */
  public Message getParentMessage() {
    return parentMessage;
  }

  /**
   * Sets this reply's parent message.
   *
   * @param parentMessage new parent message
   */
  public void setParentMessage(Message parentMessage) {
    this.parentMessage = parentMessage;
  }
}
